

            const path = require('path');
            const staticImg = path.join(__dirname, 'static');

            function ArduinoUnoBlocks (Blockly) {
            
                        
                        

                        Blockly.Blocks['EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027,
                                    "args0": [
                                        
                        {
                            "type": "field_dropdown",
                            "name":  "pin",
                            "options": [
                                 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_0,  '1'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_1,  '2'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_2,  '3'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_3,  '4'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_4,  '5'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_5,  '6'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_6,  '7'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_7,  '8'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_8,  '9'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_9,  '10'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_10,  '11'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_11,  '12'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_12,  '13'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_13,  '14'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_14,  '15'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_15,  '16'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_16,  '17'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_17,  '18'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_PIN_18,  '19'],

                            ]
                        },
                        
                        {
                            "type": "field_dropdown",
                            "name":  "button",
                            "options": [
                                 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_0,  'EM_IR_KEYCODE_1'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_1,  'EM_IR_KEYCODE_2'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_2,  'EM_IR_KEYCODE_3'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_3,  'EM_IR_KEYCODE_4'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_4,  'EM_IR_KEYCODE_5'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_5,  'EM_IR_KEYCODE_6'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_6,  'EM_IR_KEYCODE_7'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_7,  'EM_IR_KEYCODE_8'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_8,  'EM_IR_KEYCODE_9'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_9,  'EM_IR_KEYCODE_0'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_10,  'EM_IR_KEYCODE_STAR'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_11,  'EM_IR_KEYCODE_POUND'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_12,  'EM_IR_KEYCODE_UP'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_13,  'EM_IR_KEYCODE_DOWN'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_14,  'EM_IR_KEYCODE_OK'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_15,  'EM_IR_KEYCODE_LEFT'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_16,  'EM_IR_KEYCODE_RIGHT'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_17,  'EM_IR_KEYCODE_A'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_18,  'EM_IR_KEYCODE_B'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_19,  'EM_IR_KEYCODE_C'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_20,  'EM_IR_KEYCODE_D'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_21,  'EM_IR_KEYCODE_PLUS'],
 [Blockly.Msg.EXT_EMAKEFUN_CONTROL_BLOCK_1607649041027_BUTTON_22,  'EM_IR_KEYCODE_REDUCE'],

                            ]
                        },
                        
                                    ],
                                    "colour": "#68228B",
                                    "extensions":[ "output_boolean"]
                                });
                                }
                        };
                        
            return Blockly;
            }

            module.exports = ArduinoUnoBlocks ;

        